package com.designpattern.sixchapter.first;

public class GarageDoorOpenCommand implements Command{

	GarageDoor garageDoor;
	
	public GarageDoorOpenCommand(GarageDoor garageDoor) {
		this.garageDoor = garageDoor;
	}
	
	@Override
	public void execute() {
		garageDoor.up();
		garageDoor.ligthOn();
		garageDoor.stop();
		
	}

	@Override
	public void undo() {
		
	}
	
	

}
